import java.lang.*;
import java.util.*;
import rosas.lou.weatherclasses.*;

import com.dalsemi.onewire.*;
import com.dalsemi.onewire.adapter.*;
import com.dalsemi.onewire.container.*;

public class IButtonTest implements MemoryListener, MissionListener{

   public static void main(String [] args){
      new IButtonTest();
   }
   
   public IButtonTest(){
      IButton ib = new IButton();
      ib.addMemoryListener(this);
      ib.addMissionListener(this);
      //ib.clearMemory();
      //ib.stopMission();
      ib.startMission();
      
      System.out.println(ib);
   }
   
   public void onMemoryEvent(MemoryEvent me){
      System.out.println(me.getMessage());
   }
   
   public void onMissionEvent(MissionEvent me){
      System.out.println(me.getMessage());
   }
}